<template>
  <div>
    <h5>请选择你喜欢的专栏</h5>
    <div v-for="(item, index) in arr" class="ddiv">
      <input :value="item" type="checkbox" v-model="abc" />
      <span> {{ item }} </span>
    </div>
    <ul v-for="ite in abc">
      <li>{{ ite }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      abc: [],
    };
  },
};
</script>

<style>
.ddiv {
  display: inline-block;
}
</style>